#!/usr/bin/env python
import dbus
import gobject
from dbus.mainloop.glib import DBusGMainLoop
dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)

bus = dbus.SessionBus()
obj = bus.get_object("im.pidgin.purple.PurpleService", "/im/pidgin/purple/PurpleObject")
purple = dbus.Interface(obj, "im.pidgin.purple.PurpleInterface")


def send_data(message = "null"):
		print "replacing with",message
		for conv in purple.PurpleGetIms():
			purple.PurpleConvImSend(purple.PurpleConvIm(conv), message)



def main():

	
	
	return 0

if __name__ == '__main__': main()
